<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix">
    <?php
    $currentUser = DigUser_Service_User::current();
    if($currentUser) {
        foreach($this->tabs as $tab) {
            if(DigUser_Service_User::urlIsAllowed($currentUser->role, $tab['uri'])) {
                if(DigNavigation_Service_Menu::isSelected($tab['uri'])) {
                    $class = 'ui-state-active';
                } else {
                    $class = 'ui-state-default';
                }
                ?>
    <li class="<?= $class;?> ui-corner-top"><a href='<?= $this->baseUrl()?>/<?= $tab['uri']?>'><?= $tab['label']?></a></li>
                <?php }
    }

}
?>
</ul>